import { Component } from "react"



class Son extends Component {

  

  render () {
    return (
      <>
      <div>子: {this.props.count}</div>
      <button onClick={()=>{this.props.money(Math.floor(Math.random() * 1e6 + 1))}}>加</button>
      </>
    )
  }
}
export default Son